import { PluginOption } from 'vite'
import vue from '@vitejs/plugin-vue'
import { createComponents, createAutoImport, createUnoCSS } from '../plugins'

/**
 * 为 Vite 配置插件
 *
 * @returns {PluginOption[]} Vite 插件配置
 */
export const usePlugins = (): PluginOption[] => {
  return [vue(), createComponents(), createAutoImport(), createUnoCSS()]
}
